package cn.wen233.orderconsumer.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * ribbon负载均衡配置类
 *
 * @author wenei
 * @date 2021-06-09 16:33
 */
@Configuration
public class RibbonConfig {

    @Bean
    public IRule myRule() {
        return new RandomRule();
    }
}
